
def get_true_bv(handle_bv):
    if "#" in handle_bv:
        bv = handle_bv.split("#")[0]
        index = handle_bv.split("#")[1]
    elif "?" in handle_bv:
        bv = handle_bv.split("?")[0]
        index = handle_bv.split("?")[1]
    else:
        bv = handle_bv
        index = 0
    return bv, int(index)

